import java.text.SimpleDateFormat;
import java.util.Date;

public class DateTest {

	/**
	 * 
	 */
	public static void main(String[] args) {
		Date date = new Date();
		System.out.println(date);
		SimpleDateFormat b = new SimpleDateFormat("yyyy-MM-dd");
		System.out.println(b.format(date));
	}
}
